import math as m
#假设一个三位数百位a十位b个位c
for a in range(1,10): 
  for b in range(0,10):
    for c in range(0,10):
      abc=str(a)+str(b)+str(c)
      abc_int=int(abc)
      com_result=m.pow(a,3)+m.pow(b,3)+m.pow(c,3)
      if com_result==abc_int:
        print ("The num is:",abc_int,"\n")




